Method and apparatus for fine resolution brushless motor control

ABSTRACT

A motor controller ( 30 ) includes three analog Hall-effect sensors ( 42, 44, 46 ) for forming continuous-time signals proportional to the sine and cosine of the position of the rotor ( 24 ) of a motor ( 20 ). The sine and cosine signals are differentiated to obtain signals proportional to the rotor rate times the sine and cosine values. These integrated values are then multiplied by the cosine and inverse of the sine values, respectively, to obtain values equal to the rotor rate times the square of the cosine and the rotor rate times the square of the sine. These latter two values are summed to obtain an output signal proportional to the rotor rate based on the trigonometric identity sin 2 (x)+cos 2 (x)=1. Since the motor controller ( 30 ) derives a high-resolution value for the rotor rate, it may be used for fine resolution control of brushless motors and the like.

FIELD OF THE INVENTION

[0001] This invention relates generally to electric motors, and more particularly to methods and apparatus for fine resolution control of electric motors.

BACKGROUND OF THE INVENTION

[0002] Electric motors are used in many different types of applications. Some of these applications allow low precision motor control and in these applications low-cost motors and motor controllers may be used. For example one well-known technique applicable to systems that require a constant motor speed performs rate control using low-cost digital Hall-effect sensors. The outputs of these sensors are used to determine motor position and velocity. When the rotor of the motor rotates to a certain position the digital Hall effect sensors change state and trigger the commutation logic to switch the drivers into the next state. The switching can also be used for rate control.

[0003] Other applications such as autopilot servo systems require much more precise control. The problem is compounded by the fact that these systems often use brushless motors to decrease the inertia in the rotor for quick speed adjustment. However because of their lower inertia brushless motors are subject to a jerky motion that may be caused by the control loop. This jerky motion can be felt by passengers and is highly undesirable.

[0004] There are several known techniques for improving the precision of the motor control loops. The whole control loop may be made as a servo system, but such a system is large and expensive. Additional sensors may be used, such as optical sensors, additional Hall-effect sensors, or tachometers. These additional sensors make the systems more expensive.

[0005] Another technique uses analog Hall-effect sensors. According to this technique the analog Hall-effect sensors are used to form the sine and cosine functions of the rotor position. The ratio of the sine to cosine then forms the tangent, and the arctangent of the sine/cosine ratio can be used to calculate motor position and derived rate. However this method exhibits periodic errors and can result in motor speed fluctuations when used in a motor control loop, and thus is not useful in systems that need precise control.

[0006] What is needed then is a low cost motor controller suitable for fine resolution motor control that is also relatively inexpensive. Such a motor controller is provided by the present invention, whose features and advantages will be more clearly understood from the following detailed description taken in conjunction with accompanying drawings.

BRIEF DESCRIPTION OF THE DRAWINGS

[0007]FIG. 1 illustrates a block diagram of a motor system including a portion of a motor controller used for rate derivation according to the present invention.

[0008]FIG. 2 illustrates a block diagram of a complementary filter for use with the motor controller of FIG. 1.

[0009]FIG. 3 illustrates a partial block diagram and partial schematic diagram of a circuit implementation of the hardware portion of the motor controller of FIG. 1.

[0010]FIG. 4 illustrates a timing diagram of the commutation sequence of the motor controller of FIG. 1.

DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

[0011]FIG. 1 illustrates a block diagram of a motor system 10 including a portion of a motor controller 30 used for rate derivation according to the present invention. Motor system 10 includes generally a motor 20 and motor controller 30. Motor 20 is a three-phase, four-pole brushless motor having a rotor that has an instantaneous position 24 with respect to a reference point 22 forming an angle labeled “Θ”.

[0012] Motor controller 30 is used to drive the commutation sequence for motor 20 and, according to the present invention, provides an output proportional to a high resolution motor rate estimate labeled “{dot over (Θ)}” for use by a servo control loop. Motor controller 30 includes generally a hardware processor 40 and a software processor 70. Hardware processor 40 includes three analog Hall-effect sensors 42, 44, and 46 labeled “HES 1”, “HES 2”, and “HES 3”, respectively. Hall-effect sensors 42, 44, and 46 are illustrated as being adjacent to one another but are actually placed at 120° intervals around the circumference of motor 20. Note that since motor 20 is a four-pole motor, any of Hall-effect sensors 42, 44, and 46 may be placed at positions 180° from these uniformly spaced positions to obtain the desired signal. Furthermore any of the sensors may be placed at positions 90° from these uniformly spaced positions to obtain an inverse of the same signal, which can then be inverted to obtain the desired signal. Sensors 42, 44, and 46 provide three corresponding output signals labeled “X”, “Y”, and “Z”, respectively. A summing device 52 has a positive input terminal coupled to the output of HES 1 for receiving signal X, a negative input terminal coupled to the output of HES 2 for receiving signal Y, and an output terminal. A multiplication block 54 has an input terminal coupled to the output terminal of summing device 52, and an output terminal, and multiplies the input thereof by the value $\frac{1}{\sqrt{3}}$

[0013] to provide an output on an output signal line 56. A rate block 58 transforms this value by a filter transfer function $\frac{0.0004\quad s}{{0.00004\quad s} + 1}.$

[0014] System 20 also includes a summing device 62 having a first positive input terminal coupled to the output terminal of HES 2 for receiving signal Y, a second positive input terminal coupled to the output terminal of HES 1 for receiving signal X, a negative input terminal coupled to the output terminal of HES 3 for receiving signal Z, and an output terminal. A multiplication element 64 has an input terminal coupled to the output terminal of summing device 62, and an output terminal, and multiplies the input thereof by the value $\frac{1}{2}$

[0015] to provide an output on an output signal line 66.

[0016] A rate block 68 transforms this value by a filter transfer function $\frac{0.0004\quad s}{{0.00004\quad s} + 1}.$

[0017] In software processor 70 an inverter 72 has an input coupled to signal line 56, and an output, and provides a value at the output thereof equal to the negative of the value at the input. A multiplication element 74 has a first input coupled to the output terminal of filter 58, a second input coupled to signal line 66, and an output. Multiplier 76 has a first input coupled to the output of filter 68, a second input coupled to the output of inverter 72, and an output. Summing device 78 has a first positive input coupled to the output of multiplier 74, a second positive input coupled to the output of multiplier 76, and an output for providing a signal proportional to {dot over (Θ)}, namely 0.0004 {dot over (Θ)}.

[0018] Analog Hall-effect sensors 42, 44, and 46 form three sinusoidal waveforms (X, Y, and Z, respectively) that can be converted into sine (sin( )) and cosine (cos( )) functions of the instantaneous rotor position Θ. Note that the rotor position is a function of time, Θ(t), but will be referred to below as Θ to ease discussion. Summing device 52 provides an output equal to X−Y={square root}{square root over (3)} sin (Θ), and multiplication block 54 normalizes this value by multiplying it by $\frac{1}{\sqrt{3}}$

[0019] to form a value equal to sin (Θ) on signal line 56. Similarly summing device 62 provides an output equal to X+Y−Z=2cos (Θ), and multiplication block 64 normalizes this value by multiplying it by $\frac{1}{2}$

[0020] to form a value equal to cos (Θ) on signal line 66. The mathematical derivation of these functions are contained in APPENDIX I below.

[0021] Rate blocks 58 and 68 have identical transfer functions and are used to form the rotor rate modulated by sine and cosine functions, respectively. The factor 0.0004 in the numerator is used to scale the value to prevent the output from saturating the analog input circuits in the hardware circuit (since the rotor rate can be very high). The (0.00004s+1) term in the denominator is used to filter high-frequency noise. At low frequencies, the output of rate block 58 is equal to $0.0004\quad {{\overset{.}{\Theta}\left\lbrack \frac{\left( {\sin (\Theta)} \right)}{t} \right\rbrack}.}$

[0022] However since Θ is actually a function of time, $\frac{\left( {\sin (\Theta)} \right)}{t} = {\frac{\left( {\sin \left( {\Theta (t)} \right)} \right)}{t} = {{{\cos \left( {\Theta (t)} \right)}\frac{\left( {\Theta (t)} \right)}{t}} = {\overset{.}{\Theta}\quad \cos \quad {(\Theta).}}}}$

[0023] Thus the output of rate block 58 is equal to 0.0004 {dot over (Θ)} cos (Θ). Likewise the output of rate block 68 is equal to −0.0004 ( sin (Θ). These four signals (sine, cosine, and rotor rate modulated by sine and cosine) are multiplied together in multipliers 74 and 76 to form rotor rate modulated by cosine² and sine² functions, respectively. Adder 78 sums these two signals to form an output signal equal to 0.0004 {dot over (Θ)} (sin² (Θ)+cos² (Θ)). This expression can be simplified to 0.0004 {dot over (Θ)} based on the trigonometric identity:

sin²(x)+cos²(x)=1

[0024] and the output signal can then be normalized. The normalized signal {dot over (Θ)} provides a high-resolution estimate of rotor rate, which maintains constant amplitude for all angles even when individual Hall-effect sensors exhibit amplitude or phase errors. The instantaneous position can be obtained by taking the arctangent of the ratio of the sin(Θ) and cos(Θ) terms provided at the outputs of gain blocks 54 and 64, respectively, based on the trigonometric identity ${{\tan (x)} = {{\frac{\sin (x)}{\cos (x)} \cdot {APPENDIX}}\quad I}},$

[0025] below, provides a rigorous mathematical analysis to show the derivation of rotor rate signal {dot over (Θ)} and the effects of amplitude and phase errors.

[0026] Note that in an actual embodiment, it is preferable to scale the output of the Hall-effect sensors to provide signals that vary within a range close to the full voltage range of the components. Thus for example a scaling factor of 2.1 may be used for a five-volt system. The scaling factor is somewhat less than the full range of ±2.5 volts to prevent the analog-to-digital converter from saturating. Thus for example with a 2.1 volt input from the Hall-effect sensors, and a 0.0004 scaling factor by rate blocks 58 and 68, the analog-to-digital converters at the hardware-software interface will see a 1.93-volt input at the maximum motor speed of 2300 radians per second.

[0027] A complementary filter of the rotor position Θ so obtained and the rotor rate {dot over (Θ)} can be used to provide broadband motor position and rate and can eliminate the periodic errors and speed fluctuations due to HES errors. FIG. 2 illustrates a block diagram of such a complementary filter 80 for use with motor controller 30 of FIG. 1. Filter 80 includes a summing device 82, a gain adjustment block 84, a summing device 86, and an integrator 88. Summing device 82 has a positive input for receiving the motor rate Θ, a negative input, and an output for providing the difference between the positive and negative inputs thereof. Gain adjustment block 84 has an input coupled to the output of summing device 82, and an output, and provides the output as a product of the input and the value $\frac{1}{\tau},$

[0028] where τ is the smoothing coefficient of the filter. Summing device 86 has a first input coupled to the output of gain adjustment block 84, a second input for receiving the value {dot over (Θ)} calculated as described with respect to FIG. 1, and an output for providing a smoothed estimate of the rotor rate labeled “{dot over (Θ)}”. Integrator 88 has an input coupled to the output of summing device 86, and an output for providing a smoothed estimate of the position labeled “{circumflex over (Θ)}”.

[0029]FIG. 3 illustrates a partial block and partial schematic diagram of a circuit implementation 100 of the hardware portion of motor controller 30 of FIG. 1. Elements in common with the system of FIG. 1 are assigned the same reference numbers. Note that circuit 100 is only one of many possible circuits that may be used to implement the system of FIG. 1. Also shown in FIG. 3 are motor 20 and Hall-effect sensors 42, 44, and 46 as in FIG. 1.

[0030] Circuit 100 includes generally several operational amplifier (op amp) circuits 110, 120, 130, 140, 150, 160, and 170. Op amp circuit 110 implements summing device 52 and gain block 54. Op amp circuit 110 implements the summing function associated with summing device 52 by receiving signal X on the negative input terminal of an operational amplifier 111 through a resistor 112, and by receiving signal Y on the positive input terminal of operational amplifier 111 through a resistor 113. Op amp circuit 110 includes a feedback resistor 114 and a feedback capacitor 115 each connected between the output and negative input terminals of op amp 111. Op amp circuit 110 also includes a resistor 116 connected between the negative input terminal of op amp 111 and a voltage reference terminal labeled “V_(REF)”. V_(REF) is an analog ground voltage reference having a value of half the power supply voltage, or in the case of a 5 volt system, about 2.5 volts. Op amp circuit 110 performs the function of gain block 54 by the ratio of the resistance of resistor 114 to that of resistor 112, and the ratio of the resistance of resistor 116 to that of resistor 113. Resistors 114 and 116 have a value of 11.55 kilohms (kΩ), whereas resistors 112 and 113 have a value of 20 kΩ. Thus the gain is equal to 11.55 kΩ/20 kΩ, which is approximately equal to $\frac{1}{\sqrt{3}}.$

[0031] The output terminal of op amp 111 provides the value sin (Θ)) .

[0032] Circuit 100 includes a second op amp circuit 120 to implement summing device 62 and gain block 64 of FIG. 1. Op amp circuit 120 implements the summing function associated with summing device 62 by receiving signals X and Y on the negative input terminal of an op amp 121 through resistors 122 and 123, respectively, and by receiving signal Z on the positive input terminal of op amp 121 through resistor 124. Circuit 120 includes a feedback resistor 125 and a feedback capacitor 126 each connected between an output terminal and the negative input terminal of op amp 121. Circuit 120 also includes a resistor 127 connected between the negative input terminal of operational amplifier 121 and V_(REF). Op amp circuit 120 performs the function of gain block 64 by the ratio of the resistance of resistor 125 to that of resistors 122 and 123, and the ratio of the resistance of resistor 127 to that of resistor 124. Resistors 125 and 127 each have a value of 10 kΩ, whereas resistors 122-124 each have a value of 20 kΩ. Thus the gain is equal to 10 kΩ/20 kΩ, which equals $\frac{1}{2}.$

[0033] The output terminal of op amp 121 provides the value cos (Θ).

[0034] Op amp circuit 130 includes an op amp 131, a capacitor 132, and resistors 133 and 134. Op amp 131 has a negative input terminal coupled to the output terminal of op amp 111 through the series combination of capacitor 132 and resistor 133, a positive input terminal connected to V_(REF), and an output terminal for providing the value −{dot over (Θ)} cos (Θ). Resistor 134 is connected between the output terminal and the negative input terminal of op amp 131. Resistor 133 has a value of 4 kΩ and resistor 134 has a value of 40 kΩ. Capacitor 132 has a value of 0.01 micro Farads (μF). The transfer function of op amp circuit 130 is equal to $\frac{\tau \quad s}{{\tau \quad s} + 1} = {\frac{R_{134}C_{132}s}{{R_{133}C_{132}s} + 1} = \frac{0.0004\quad s}{{0.00004\quad s} + 1}}$

[0035] which is the desired transfer function.

[0036] Op amp circuit 140 is structurally identical to op amp circuit 130 and has an op amp 141, a capacitor 142, and resistors 143 and 144 each connected the same as and having the same values as corresponding elements 131-134 in op amp circuit 130. Op amp circuit 140 provides the value {dot over (Θ)} sin (Θ) at the output terminal thereof.

[0037] Op amp circuit 150 includes an op amp 151 having a positive input terminal receiving signal Y through a resistor 152 having a value of 1 kΩ, a negative input terminal connected to V_(REF), and an output terminal for providing sign HES A. A resistor 153 having a value of 100 kΩ is connected between the output and positive input terminals of op amp 151. Op amp circuit 150 provides a high gain on signal Y and essentially “squares it up” to provide signal HES A. Op amp circuit 160 is structurally identical to op amp circuit 150 and includes an op amp 161 and resistors 162 and 163 having the same connections and values as corresponding elements 151-153 in op amp circuit 150. Op amp circuit 160 however receives signal X to provide output signal HES B. Op amp circuit 170 is also structurally identical to op amp circuit 150 and includes an op amp 171 and resistors 172 and 173 having the same connections and values as corresponding elements 151-153 in op amp circuit 150. Op amp circuit 170 however receives signal Z to provide output signal HES C.

[0038] Signals HES A, HES B, and HES C are useful in controlling the commutation sequence of motor 30 as further illustrated in FIG. 4, which illustrates a timing diagram of the commutation sequence of motor controller 30 of FIG. 1. In FIG. 4 the horizontal axis represents motor angle in degrees, whereas the vertical axis shows the voltage of signals HES A, HES B, and HES C, which can be used to drive the commutation sequence for both clockwise and counter-clockwise rotation. The commutation sequence is a conventional commutation sequence for a four-pole, brushless stator-driven motor that drives an active phase at a voltage of 28 volts.

[0039] The hardware/software interface is formed when the values sin (Θ), cos (Θ), −{dot over (Θ)} cos (Θ), and {dot over (Θ)} sin (Θ) are provided to respective analog-to-digital converter inputs of a microcontroller (not shown in FIG. 3). The microcontroller performs the further cross multiplications of the terms to arrive at the value for {dot over (Θ)} as described with reference to FIG. 1 above. It should be apparent that the split between hardware and software is somewhat arbitrary and may be varied from application to application. For example in another embodiment the outputs of the Hall-effect sensors may be provided directly into analog-to-digital converter inputs and the remainder of the processing would be performed in software. However circuit 100 is an efficient implementation of the functions associated with elements 52, 54, 58, 62, 64, and 68 and may also be conveniently combined into a single integrated circuit.

[0040] While the invention has been described in the context of a preferred embodiment, various modifications will be apparent to those skilled in the art. For example while the rotor rate estimation apparatus is useful in autopilot servo systems, other applications are also readily apparent such as automatic power steering control. Furthermore the system can be implemented in hardware, software, or various combinations of the two. Accordingly, it is intended by the appended claims to cover all modifications of the invention that fall within the true scope of the invention.

APPENDIX I

[0041] Assuming the sensor inputs X, Y, & Z have unity amplitude and equally spaced phase signals the derived Sine and Cosine amplitudes are as follows.

[0042] Sine Amplitude: $\begin{matrix} \begin{matrix} {{X - Y} = {{\sin \left( {\Theta + 30} \right)} - {\sin \left( {\Theta + 150} \right)}}} \\ {{X - Y} = {\left\lbrack {{\sin \quad {{\Theta cos}(30)}} + {\cos \quad {{\Theta sin}(30)}}} \right\rbrack -}} \\ {\quad \left\lbrack {{\sin \quad {{\Theta cos}(150)}} + {\cos \quad {{\Theta sin}(150)}}} \right\rbrack} \\ {{X - Y} = {\left\lbrack {{\frac{\sqrt{3}}{2}\sin \quad \Theta} + {\frac{1}{2}\cos \quad \Theta}} \right\rbrack - \left\lbrack {{{- \frac{\sqrt{3}}{2}}\sin \quad \Theta} + {\frac{1}{2}\cos \quad \Theta}} \right\rbrack}} \\ {{X - Y} = {\sqrt{3}\sin \quad \Theta}} \end{matrix} & \left\{ {{Equation}\quad 1} \right\} \end{matrix}$

[0043] Cosine Amplitude: $\begin{matrix} \begin{matrix} {{X + Y - Z} = {{\sin \left( {\Theta + 30} \right)} + {\sin \left( {\Theta + 150} \right)} - {\sin \left( {\Theta + 270} \right)}}} \\ {{X + Y - Z} = {\left\lbrack {{\sin \quad {{\Theta cos}(30)}} + {\cos \quad {{\Theta sin}(30)}}} \right\rbrack +}} \\ {\quad {\left\lbrack {{\sin \quad {{\Theta cos}(150)}} + {\cos \quad {{\Theta sin}(150)}}} \right\rbrack -}} \\ {\quad \left\lbrack {{\sin \quad {{\Theta cos}(270)}} + {\cos \quad {{\Theta sin}(270)}}} \right\rbrack} \\ {{X + Y - Z} = {\left\lbrack {{\frac{\sqrt{3}}{2}\sin \quad \Theta} + {\frac{1}{2}\cos \quad \Theta}} \right\rbrack +}} \\ {\quad {\left\lbrack {{{- \frac{\sqrt{3}}{2}}\sin \quad \Theta} + {\frac{1}{2}\cos \quad \Theta}} \right\rbrack + {\cos \quad \Theta}}} \\ {{X + Y - Z} = {2\cos \quad \Theta}} \end{matrix} & \left\{ {{Equation}\quad 2} \right\} \end{matrix}$

[0044] Equations 1 and 2 provide the relative amplitudes for nominal sensor inputs. System 20 of FIG. 1 normalizes the sine and cosine signals by dividing them by {square root}{square root over (3)} and 2, respectively.

[0045] Manufacturing tolerances in positioning the Hall-effect sensors result in angular errors and proximity errors. To examine the effects of angular position error (phase) and proximity errors (amplitude) the derivation can be expanded to include error terms. The angular position errors of sensor 42 and 44 are represented as Δ_(x) and Δ_(y), respectively. The amplitudes of sensors 42 and 44 are represented as A_(x) and A_(y), respectively. Thus the sinΘ derivation including sensor amplitude and phase errors is as follows:

X−Y=A _(x) sin(Θ+30+Δ_(x))−A _(y) sin(Θ+150+Δ_(y))

X−Y=A _(x) [sin Θ cos(30+Δ_(x))+cos Θ sin(30+Δ_(x))]−A _(y) [sin Θ cos(150+Δ_(y))+cos Θ sin(150+Δ_(y))]

X−Y=[A _(x) cos(30+Δ_(x))−A _(y) cos(150+Δ_(y))]sin Θ+[A _(x) sin(30+Δ_(x))−A _(y) sin(150+Δ_(y))]cos Θ

[0046] Represent constants by M, N: $\begin{matrix} \begin{matrix} {{X - Y} = {{M\quad \sin \quad \Theta} + {N\quad \cos \quad \Theta}}} \\ {{X - Y} = {M\quad\left\lbrack {{\sin \quad \Theta} + {\frac{N}{M}\quad \cos \quad \Theta}} \right\rbrack}} \\ {{{Assign}\quad \tan \quad t} = \frac{N}{M}} \\ {{X - Y} = {M\quad\left\lbrack {{\sin \quad \Theta} + {\tan \quad t\quad \cos \quad \Theta}} \right\rbrack}} \\ {{X - Y} = {\frac{M}{\cos \quad t}\quad\left\lbrack {{\sin \quad {\Theta cos}\quad t} + {\sin \quad t\quad \cos \quad \Theta}} \right\rbrack}} \\ {{X - Y} = {\frac{M}{\cos \quad t}\quad \sin \quad \left( {\Theta + t} \right)}} \\ {{X - Y} = {\frac{\left\lbrack {{A_{X}{\sin \left( {30 + \Delta_{X}} \right)}} - {A_{Y}{\sin \left( {150 + \Delta_{Y}} \right)}}} \right\rbrack}{\cos \quad t}{\sin \left( {\Theta + t} \right)}}} \\ {Where} \\ {t = {\arctan \left\lbrack \frac{\left\lbrack {{A_{X}{\sin \left( {30 + \Delta_{X}} \right)}} - {A_{Y}{\sin \left( {150 + \Delta_{Y}} \right)}}} \right\rbrack}{\left\lbrack {{A_{X}{\cos \left( {30 + \Delta_{X}} \right)}} - {A_{Y}{\cos \left( {150 + \Delta_{Y}} \right)}}} \right\rbrack} \right\rbrack}} \end{matrix} & \left\{ {{Equation}\quad 3} \right\} \end{matrix}$

[0047] The CosineΘ derivation including sensor amplitude and phase errors:

X+Y−Z=A _(x) sin(Θ−30+Δ_(x))+A _(y) sin(Θ+150+Δ_(y))−A _(z) sin(Θ+270+Δ_(z))

X+Y−Z=A _(x) [sin Θ cos(30+Δ_(x))+cos Θ sin(30+Δ_(x))]+A _(y) [sin Θ cos(150+Δ_(y))+cos Θ sin(150+Δ_(y))]−A _(z) [sin Θ cos(270+Δ_(z))+cos Θ sin(270+Δ_(z))]

X+Y−Z=[A _(x) cos(30+Δ_(x))+A _(y) cos(150+Δ_(y))−A _(z) cos(270+Δ_(z))]sin Θ+[A _(x) sin(30+Δ_(x))+A _(y) sin(150+Δ_(y))−A _(z) sin(270+Δ_(z))]cos Θ

[0048] Represent constants by M, N $\begin{matrix} \begin{matrix} {{X + Y - Z} = {{M\quad \sin \quad \Theta} + {N\quad \cos \quad \Theta}}} \\ {{X + Y - Z} = {N\quad\left\lbrack {{\frac{M}{N}\sin \quad \Theta} + {\cos \quad \Theta}} \right\rbrack}} \\ {{{Assign}\quad \tan \quad t} = \frac{M}{N}} \\ {{X + Y - Z} = {N\quad\left\lbrack {{\tan \quad t\quad \sin \quad \Theta} + {\cos \quad \Theta}} \right\rbrack}} \\ {{X + Y - Z} = {\frac{N}{\cos \quad t}\quad\left\lbrack {{\sin \quad {\Theta sin}\quad t} + {\cos \quad \Theta \quad \cos \quad t}}\quad \right\rbrack}} \\ {{X + Y - Z} = {\frac{N}{\cos \quad t}\quad \cos \quad \left( {\Theta - t} \right)}} \\ {{X + Y - Z} = {\frac{\begin{matrix} \left\lbrack {{A_{X}{\sin \left( {30 + \Delta_{X}} \right)}} + {A_{Y}\sin}} \right. \\ \left. {\left( {150 + \Delta_{Y}} \right) - {A_{Z}{\sin \left( {270 + \Delta_{Z}} \right)}}} \right\rbrack \end{matrix}}{\cos \quad t}{\cos \left( {\Theta - t} \right)}}} \\ {Where} \\ {t = {\arctan \left\lbrack \frac{\begin{matrix} \left\lbrack {{A_{X}{\cos \left( {30 + \Delta_{X}} \right)}} - {A_{Y}{\cos \left( {150 + \Delta_{Y}} \right)}} -} \right. \\ \left. {A_{Z}{\cos \left( {270 + \Delta_{Z}} \right)}} \right\rbrack \end{matrix}}{\begin{matrix} \left\lbrack {{A_{X}{\sin \left( {30 + \Delta_{X}} \right)}} - {A_{Y}{\sin \left( {150 + \Delta_{Y}} \right)}} -} \right. \\ \left. {A_{Z}{\sin \left( {270 + \Delta_{Z}} \right)}} \right\rbrack \end{matrix}} \right\rbrack}} \end{matrix} & \left\{ {{Equation}\quad 4} \right\} \end{matrix}$

[0049] The effects of sensor errors on the angle rate can be analyzed from the sine and cosine functions including error effects. Equations 3 & 4 can be represented in the form:

A _(s) sin(Θ+Δ_(s))

A _(c) cos(Θ+Δ_(c))

[0050] Applying derivative function, cross-multiplying and summing the results provides the sin²+cos² form. $\begin{matrix} \begin{matrix} {{A_{S}A_{C}\overset{.}{\Theta}{\sin \left( {\Theta + \Delta_{S}} \right)}{\sin \left( {\Theta + \Delta_{C}} \right)}} +} \\ {A_{S}A_{C}\overset{.}{\Theta}{\cos \left( {\Theta + \Delta_{S}} \right)}{\cos \left( {\Theta + \Delta_{C}} \right)}} \\ {A_{S}A_{C}{\overset{.}{\Theta}\left\lbrack {{\sin \quad {\Theta cos}\quad \Delta_{S}} + {\cos \quad {\Theta sin}\quad \Delta_{S}}} \right\rbrack}} \\ {\quad {\left\lbrack {{\sin \quad {\Theta cos}\quad \Delta_{C}} + {\cos \quad {\Theta sin}\quad \Delta_{C}}} \right\rbrack +}} \\ {A_{S}A_{C}{\overset{.}{\Theta}\left\lbrack {{\cos \quad {\Theta cos}\quad \Delta_{S}} - {\sin \quad {\Theta sin}\quad \Delta_{S}}} \right\rbrack}} \\ {\quad \left\lbrack {{\cos \quad {\Theta cos}\quad \Delta_{C}} - {\sin \quad {\Theta sin}\quad \Delta_{C}}} \right\rbrack} \\ {A_{S}A_{C}{\overset{.}{\Theta}\begin{bmatrix} \begin{matrix} \begin{matrix} {{\sin^{2}{\Theta cos}\quad \Delta_{S}\cos \quad \Delta_{C}} + {\sin \quad {\Theta cos}\quad {\Theta cos}\quad \Delta_{S}\sin \quad \Delta_{C}} +} \\ {{\sin \quad {\Theta cos}\quad {\Theta cos}\quad \Delta_{C}\sin \quad \Delta_{S}} + {\cos^{2}{\Theta sin}\quad \Delta_{S}\sin \quad \Delta_{C}} +} \end{matrix} \\ {{\cos^{2}{\Theta cos}\quad \Delta_{S}\cos \quad \Delta_{C}} - {\sin \quad {\Theta cos}\quad {\Theta cos}\quad \Delta_{S}\sin \quad \Delta_{C}} -} \end{matrix} \\ {{\sin \quad {\Theta cos}\quad {\Theta cos}\quad \Delta_{C}\sin \quad \Delta_{S}} + {\sin^{2}{\Theta sin}\quad \Delta_{S}\sin \quad \Delta_{C}}} \end{bmatrix}}} \\ {A_{S}A_{C}{\overset{.}{\Theta}\left\lbrack {{\sin^{2}{\Theta cos}\quad \Delta_{S}\cos \quad \Delta_{C}} + {\cos^{2}{\Theta sin}\quad \Delta_{S}\sin \quad \Delta_{C}} +} \right.}} \\ \left. \quad {{\cos^{2}{\Theta cos}\quad \Delta_{S}\cos \quad \Delta_{C}} + {\sin^{2}{\Theta sin}\quad \Delta_{S}\sin \quad \Delta_{C}}} \right\rbrack \\ {A_{S}A_{C}{\overset{.}{\Theta}\left\lbrack {{\sin^{2}{\Theta \left\lbrack {{\cos \quad \Delta_{S}\cos \quad \Delta_{C}} + {\sin \quad \Delta_{S}\sin \quad \Delta_{C}}} \right\rbrack}} +} \right.}} \\ \left. \quad {\cos^{2}{\Theta \left\lbrack {{\sin \quad \Delta_{S}\sin \quad \Delta_{C}} + {\cos \quad \Delta_{S}\cos \quad \Delta_{C}}} \right\rbrack}} \right\rbrack \\ {A_{S}A_{C}{{\overset{.}{\Theta}\left\lbrack {{\sin^{2}\Theta} + {\cos^{2}\Theta}} \right\rbrack}\left\lbrack {{\cos \quad \Delta_{S}\cos \quad \Delta_{C}} + {\sin \quad \Delta_{S}\sin \quad \Delta_{C}}} \right\rbrack}} \\ {A_{S}A_{C}{\overset{.}{\Theta}\left\lbrack {{\cos \quad \Delta_{S}\cos \quad \Delta_{C}} + {\sin \quad \Delta_{S}\sin \quad \Delta_{C}}} \right\rbrack}} \end{matrix} & \left\{ {{Equation}\quad 5} \right\} \end{matrix}$ 

We claim:
 1. A method for performing fine resolution motor control comprising the steps of: forming a first signal proportional to sin(Θ) and a second signal proportional to cos(Θ) using a plurality of analog Hall-effect sensors, wherein Θ is an angular position of a rotor of the motor with respect to a predetermined reference point as a function of time; differentiating said first and second signals to obtain third and fourth signals, respectively; multiplying said second and third signals to provide a fifth signal; forming an inverse of a product of said first signal and said fourth signal to provide a sixth signal; and summing said fifth and sixth signals to provide an output signal proportional to a rotor rate in response.
 2. The method of claim 1 wherein said step of forming said inverse of said product of said first signal and said fourth signal to provide said sixth signal comprises the steps of: inverting said first signal to form an inverted first signal; and multiplying said inverted first signal by said fourth signal to obtain said sixth signal.
 3. The method of claim 1 wherein said step of forming said first signal proportional to sin(Θ) and said second signal proportional to cos(Θ) using said plurality of analog Hall-effect sensors comprises the step of placing first, second, and third analog Hall-effect sensors at substantially uniform intervals around the circumference of said motor.
 4. The method of claim 3 wherein said step of forming said first signal proportional to sin(Θ) further comprises the step of subtracting an output of said second Hall-effect sensor from an output of said first Hall-effect sensor to obtain said first signal.
 5. The method of claim 3 wherein said step of forming said second signal proportional to cos(Θ) further comprises the step of summing an output of said first Hall-effect sensor, an output of said second Hall-effect sensor, and the negative of an output of said third Hall-effect sensor to obtain said second signal.
 6. The method of claim 1 further comprising the step of normalizing said first and second signals prior to said step of differentiating.
 7. The method of claim 1 further comprising the step of obtaining an instantaneous position of said rotor by taking the arctangent of the ratio of said first signal to said second signal.
 8. A method for performing fine resolution motor control comprising the steps of: placing first, second, and third analog Hall-effect sensors at substantially uniform intervals around the circumference of a motor, said first, second, and third analog Hall-effect sensors producing respective signals X, Y, and Z; forming a first signal proportional to sin(Θ) and a second signal proportional to cos(Θ) in response to said signals X, Y, and Z wherein Θ is an angular position of a rotor of the motor with respect to a predetermined reference point as a function of time; differentiating said first signal to obtain a third signal having a value proportional to {dot over (Θ)} times cos(Θ) wherein {dot over (Θ)} is an estimate of a rate of said rotor; differentiating said second signal to obtain a fourth signal having a value proportional to −{dot over (Θ)} times cos (Θ); multiplying said second and third signals to obtain a fifth signal proportional to {dot over (Θ)} times cos²(Θ); multiplying an inverse of said first signal and said fourth signal to obtain a sixth signal proportional to {dot over (Θ)} times sin²(Θ); and summing said fifth and sixth signals to obtain an output signal proportional to {dot over (Θ)}.
 9. The method of claim 8 wherein said step of forming said first and second signals comprises the steps of: subtracting Y from X to form a first difference signal and multiplying said first difference signal by a first predetermined number to form said first signal; and adding X to Y and subtracting Z to form a second difference signal and multiplying said second difference signal by a second predetermined number to form said second signal.
 10. The method of claim 9 wherein said first predetermined number is equal to $\frac{1}{\sqrt{3}}$

and said second predetermined number is equal to $\frac{1}{2}.$


11. The method of claim 8 further comprising performing the steps of placing, deriving, integrating said first signal, and integrating said second signal in hardware circuitry, and performing said steps of multiplying and summing in software.
 12. The method of claim 8 further comprising the step of obtaining an instantaneous position of said rotor by taking the arctangent of the ratio of said first signal to said second signal.
 13. A motor controller comprising: first, second, and third Hall-effect sensors positioned at substantially uniform intervals around the circumference of a motor, each of said first, second, and third Hall-effect sensors providing corresponding first, second, and third analog output signals; a first adder having inputs for receiving said first and second analog output signals, and an output for providing a difference between said first and second analog output signals; a second adder having inputs for receiving said first, said second, and said third analog output signals and having an output for providing a value equal to the first analog output signal plus the second analog output signal minus said third analog output signal; a first gain element having an input coupled to said output of said first adder, and an output for providing a first signal proportional to a sine of a position of said rotor; a second gain element having an input coupled to said output of said second adder, and an output for providing a second signal proportional to a cosine of a position of said rotor; a first rate block having an input coupled to said output of said first gain element, and an output; a second rate block having an input coupled to said output of said second gain element, and an output; a first multiplier having a first input coupled to said output of said first integrator, a second input coupled to said output of said second gain element, and an output; a second multiplier having a first input coupled to said output of said first gain element through an inverter, a second input coupled to said output of said second integrator, and an output; and a summing device having a first input coupled to said output of said first multiplier, a second input coupled to said output of said second multiplier, and an output for providing an output signal proportional to a rotor rate signal estimate.
 14. The motor controller of claim 13 further comprising a smoothing filter having a first input for receiving said rotor rate estimate, a second input for receiving a rotor position signal, and first and second outputs for providing a smoothed rotor position and a smoothed rotor rate estimate, respectively.
 15. The motor controller of claim 14 wherein said smoothing filter comprises: a first summing device having a first input for receiving said rotor position signal, a second input for coupled to said second output of said smoothing filter, and an output for providing a difference between said first and second inputs thereof; a multiplication element having a first input coupled to the output of the first summing device, and an output for providing a product of said first input and a predetermined multiplication factor; a second summing device having a first input for receiving said rotor rate estimate, a second input coupled to said output of said multiplication element, and an output for providing said first output of said smoothing filter as a sum of said first and second inputs thereof; and an integrator having an input coupled to said output of second summing device, and an output for providing said second output of said smoothing filter. 